package com.jgy.handler;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 姜光远
 * @date 2022/7/21 16:49
 */
@Configuration
public class Config {


    @Bean //作用于未登录的
    public AuthenticationEntryPointHandler authenticationEntryPointHandler() {
        return new AuthenticationEntryPointHandler();
    }

    @Bean //作用于登录后跨权限访问的
    public AuthAccessDeniedHandler authAccessDeniedHandler() {
        return new AuthAccessDeniedHandler();
    }
}
